<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<ul id="example-1">
			<li v-for="item in items">
				{{item.message}}
			</li>
		</ul>
		<ul id="example-2">
			<li v-for="item, index in items">
				{{index}} : {{item.message}}
			</li>
		</ul>
		<ul id="example-3">
			<li v-for="value in object">
				{{value}}
			</li>
		</ul>
		<ul id="example-4">
			<li v-for="value, key in object">
				{{key}} : {{value}}
			</li>
		</ul>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#example-1",
				data: {
					items: [
						{message: "msg1"},
						{message: "msg2"}
					]
				}
			});
			var vm2 = new Vue({
				el: "#example-2",
				data: {
					items: [
						{message: "msg1"},
						{message: "msg2"}
					]
				}
			});
			var vm3 = new Vue({
				el: "#example-3",
				data: {
					object: {
						name: "张三",
						age: 20
					}
				}
			});
			var vm4 = new Vue({
				el: "#example-4",
				data: {
					object: {
						name: "张三",
						age: 20
					}
				}
			});
		</script>
	</body>
</html>
